﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;
using DAL;

namespace BUS
{
    public class BUS_HoaDon
    {
        public DataTable showhoadon()
        {
            DAL_HoaDon dao = new DAL_HoaDon();
            return dao.showhoadon();
        }
        public void inserthoadon(string mhd, string thd, string nl, string mnv, string mkh)
        {
            DAL_HoaDon dao = new DAL_HoaDon();
            dao.inserthoadon(mhd,thd,nl,mnv,mkh);
        }

        public void Updatehoadon(string mhd1, string mhd, string thd, string nl, string mnv)
        {
            DAL_HoaDon dao = new DAL_HoaDon();
            dao.Updatehoadon(mhd1, mhd, thd, nl, mnv);
        }
        public void Deletehoadon(string mhd_d)
        {
            DAL_HoaDon daoKH = new DAL_HoaDon();
            daoKH.Deletehoadon(mhd_d);
        }
    }
}
